3.8.56 \(\int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx\) [756]

Optimal. Leaf size=200 \[ -\frac {2 \sqrt {a+b} \cot (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}-\frac {2 \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d} \]

[Out]

-2*cot(d*x+c)*EllipticF((a+b*sec(d*x+c))^(1/2)/(a+b)^(1/2),((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(d*x+c))/
(a+b))^(1/2)*(-b*(1+sec(d*x+c))/(a-b))^(1/2)/d-2*cot(d*x+c)*EllipticPi((a+b*sec(d*x+c))^(1/2)/(a+b)^(1/2),(a+b
)/a,((a+b)/(a-b))^(1/2))*(a+b)^(1/2)*(b*(1-sec(d*x+c))/(a+b))^(1/2)*(-b*(1+sec(d*x+c))/(a-b))^(1/2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.12, antiderivative size = 200, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {4127, 4006, 3869, 3917} \begin {gather*} -\frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{d}-\frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac {a+b}{a};\text {ArcSin}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a^2 - b^2*Sec[c + d*x]^2)/(a + b*Sec[c + d*x])^(3/2),x]

[Out]

(-2*Sqrt[a + b]*Cot[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*
(1 - Sec[c + d*x]))/(a + b)]*Sqrt[-((b*(1 + Sec[c + d*x]))/(a - b))])/d - (2*Sqrt[a + b]*Cot[c + d*x]*Elliptic
Pi[(a + b)/a, ArcSin[Sqrt[a + b*Sec[c + d*x]]/Sqrt[a + b]], (a + b)/(a - b)]*Sqrt[(b*(1 - Sec[c + d*x]))/(a +
b)]*Sqrt[-((b*(1 + Sec[c + d*x]))/(a - b))])/d

Rule 3869

Int[1/Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[2*(Rt[a + b, 2]/(a*d*Cot[c + d*x]))*Sqrt[b
*((1 - Csc[c + d*x])/(a + b))]*Sqrt[(-b)*((1 + Csc[c + d*x])/(a - b))]*EllipticPi[(a + b)/a, ArcSin[Sqrt[a + b
*Csc[c + d*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0]

Rule 3917

Int[csc[(e_.) + (f_.)*(x_)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*(Rt[a + b, 2]/(b*
f*Cot[e + f*x]))*Sqrt[(b*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[(-b)*((1 + Csc[e + f*x])/(a - b))]*EllipticF[ArcSin
[Sqrt[a + b*Csc[e + f*x]]/Rt[a + b, 2]], (a + b)/(a - b)], x] /; FreeQ[{a, b, e, f}, x] && NeQ[a^2 - b^2, 0]

Rule 4006

Int[(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[c, In
t[1/Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Csc[e + f*x]/Sqrt[a + b*Csc[e + f*x]], x], x] /; FreeQ[{a,
b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 4127

Int[((A_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Dist[
C/b^2, Int[(a + b*Csc[e + f*x])^(m + 1)*Simp[-a + b*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, e, f, A, C, m}, x
] && EqQ[A*b^2 + a^2*C, 0]

Rubi steps

\begin {align*} \int \frac {a^2-b^2 \sec ^2(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=-\int \frac {-a+b \sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=a \int \frac {1}{\sqrt {a+b \sec (c+d x)}} \, dx-b \int \frac {\sec (c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=-\frac {2 \sqrt {a+b} \cot (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}-\frac {2 \sqrt {a+b} \cot (c+d x) \Pi \left (\frac {a+b}{a};\sin ^{-1}\left (\frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {a+b}}\right )|\frac {a+b}{a-b}\right ) \sqrt {\frac {b (1-\sec (c+d x))}{a+b}} \sqrt {-\frac {b (1+\sec (c+d x))}{a-b}}}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 2.34, size = 143, normalized size = 0.72 \begin {gather*} -\frac {4 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {b+a \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} \left ((a+b) F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )-2 a \Pi \left (-1;\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {a-b}{a+b}\right )\right ) \sec (c+d x)}{d \sqrt {a+b \sec (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a^2 - b^2*Sec[c + d*x]^2)/(a + b*Sec[c + d*x])^(3/2),x]

[Out]

(-4*Cos[(c + d*x)/2]^2*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(b + a*Cos[c + d*x])/((a + b)*(1 + Cos[c + d
*x]))]*((a + b)*EllipticF[ArcSin[Tan[(c + d*x)/2]], (a - b)/(a + b)] - 2*a*EllipticPi[-1, ArcSin[Tan[(c + d*x)
/2]], (a - b)/(a + b)])*Sec[c + d*x])/(d*Sqrt[a + b*Sec[c + d*x]])

________________________________________________________________________________________

Maple [A]
time = 0.21, size = 214, normalized size = 1.07

method result size
default \(-\frac {2 \sqrt {\frac {b +a \cos \left (d x +c \right )}{\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {b +a \cos \left (d x +c \right )}{\left (1+\cos \left (d x +c \right )\right ) \left (a +b \right )}}\, \left (1+\cos \left (d x +c \right )\right )^{2} \left (\EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {\frac {a -b}{a +b}}\right ) a +\EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {\frac {a -b}{a +b}}\right ) b -2 a \EllipticPi \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, -1, \sqrt {\frac {a -b}{a +b}}\right )\right ) \left (-1+\cos \left (d x +c \right )\right )}{d \left (b +a \cos \left (d x +c \right )\right ) \sin \left (d x +c \right )^{2}}\) \(214\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a^2-b^2*sec(d*x+c)^2)/(a+b*sec(d*x+c))^(3/2),x,method=_RETURNVERBOSE)

[Out]

-2/d*((b+a*cos(d*x+c))/cos(d*x+c))^(1/2)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*((b+a*cos(d*x+c))/(1+cos(d*x+c))/(a
+b))^(1/2)*(1+cos(d*x+c))^2*(EllipticF((-1+cos(d*x+c))/sin(d*x+c),((a-b)/(a+b))^(1/2))*a+EllipticF((-1+cos(d*x
+c))/sin(d*x+c),((a-b)/(a+b))^(1/2))*b-2*a*EllipticPi((-1+cos(d*x+c))/sin(d*x+c),-1,((a-b)/(a+b))^(1/2)))*(-1+
cos(d*x+c))/(b+a*cos(d*x+c))/sin(d*x+c)^2

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a^2-b^2*sec(d*x+c)^2)/(a+b*sec(d*x+c))^(3/2),x, algorithm="maxima")

[Out]

-integrate((b^2*sec(d*x + c)^2 - a^2)/(b*sec(d*x + c) + a)^(3/2), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a^2-b^2*sec(d*x+c)^2)/(a+b*sec(d*x+c))^(3/2),x, algorithm="fricas")

[Out]

integral(-(b*sec(d*x + c) - a)/sqrt(b*sec(d*x + c) + a), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a - b \sec {\left (c + d x \right )}}{\sqrt {a + b \sec {\left (c + d x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a**2-b**2*sec(d*x+c)**2)/(a+b*sec(d*x+c))**(3/2),x)

[Out]

Integral((a - b*sec(c + d*x))/sqrt(a + b*sec(c + d*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a^2-b^2*sec(d*x+c)^2)/(a+b*sec(d*x+c))^(3/2),x, algorithm="giac")

[Out]

integrate(-(b^2*sec(d*x + c)^2 - a^2)/(b*sec(d*x + c) + a)^(3/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} -\int -\frac {a^2-\frac {b^2}{{\cos \left (c+d\,x\right )}^2}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a^2 - b^2/cos(c + d*x)^2)/(a + b/cos(c + d*x))^(3/2),x)

[Out]

-int(-(a^2 - b^2/cos(c + d*x)^2)/(a + b/cos(c + d*x))^(3/2), x)

________________________________________________________________________________________